﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Runtime.Serialization;
using BlueSkySOA.Service.SMSService.DataContracts;
namespace BlueSkySOA.Service.SMSService
{
    [ServiceContract]
    public interface ISmsService
    {
        [OperationContract]
        [WebInvoke(UriTemplate ="/sms/send", Method="POST"
            , ResponseFormat = WebMessageFormat.Json
            , RequestFormat = WebMessageFormat.Json
            , BodyStyle = WebMessageBodyStyle.Bare
            )]
        bool SendSMS(SmsSendRequest smsRequest);

        [OperationContract]
        [WebGet(UriTemplate = "/test/{servicename}"
                , ResponseFormat = WebMessageFormat.Json)]
        string TestService(string servicename);
    }
}
